<?php

class StockTableSeeder extends Seeder {
	public function run()
	{
		DB::table('stock')->truncate();

		$stocks = [
			['component_id' => '1', 
			'amount' => '10', 
			'cost' => '10,10', 
			'shipping_cost' => '5,10', 
			'tax_cost' => '2,10', 
			'other_cost' => '', 
			'created_at' => new DateTime, 
			'updated_at' => new DateTime],

			['component_id' => '2', 
			'amount' => '20', 
			'cost' => '20,00', 
			'shipping_cost' => '2,00', 
			'tax_cost' => '', 
			'other_cost' => '', 
			'created_at' => new DateTime, 
			'updated_at' => new DateTime]
		];

		DB::table('stock')->insert($stocks);
	}
}